package com.gxnzd.communityelderly.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxnzd.communityelderly.entity.Reservation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 23234
* @description 针对表【reservation】的数据库操作Mapper
* @createDate 2024-10-31 15:23:13
* @Entity com.gxnzd.communityelderly.entity.Reservation
*/
@Mapper
public interface ReservationMapper extends BaseMapper<Reservation> {
    IPage<Reservation> selectPageInfoList(@Param("userId")Integer userId,
                                          @Param("doctorId")Integer doctorId,
                                          @Param("status")String status,
                                          @Param("page")Page<Reservation> page,
                                          @Param("startDate")String startDate,
                                          @Param("endDate")String endDate);

    IPage<Reservation> selectUserPageInfo(@Param("empId")Long empId,
                                          @Param("status")String status,
                                          @Param("page")Page<Reservation> page);
}




